package com.tsl.prevention.modules.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lionel
 * @since 2021-03-25
 */
@TableName("user_buyRecord")
public class Buyrecord implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 购买数量
     */
    private Integer num;

    /**
     * 购买金额
     */
    private Double fee;

    private LocalDateTime createtime;

    private String buyId;

    private String goodsId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getFee() {
        return fee;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public String getBuyId() {
        return buyId;
    }

    public void setBuyId(String buyId) {
        this.buyId = buyId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public String toString() {
        return "Buyrecord{" +
        "id=" + id +
        ", userId=" + userId +
        ", num=" + num +
        ", fee=" + fee +
        ", createtime=" + createtime +
        ", buyId=" + buyId +
        ", goodsId=" + goodsId +
        "}";
    }
}
